import request from '../request.js';

// 获取员工星级详情
export function getEmployeeRating(employeeId) {
  return request({
    url: `/api/employeeRatingStars/getByEmployeeId?employeeId=${employeeId}`,
    method: 'post'
  });
}

// 获取员工评价详情
export function getEmployeeEvaluation(employeeId) {
  let url = '/api/workOrderEvaluation/getByEmployeeId';
  if (employeeId) {
    url += '?employeeId=' + employeeId;
  }
  
  return request({
    url: url,
    method: 'post'
  });
}

// // 查询员工提成信息列表
// export function queryEmployeeCommissionList(data) {
//   return request({
//     url: '/order-client/api/employeeCommissionInfo/queryPageList',
//     method: 'post',
//     data
//   });
// }

// 根据员工ID查询提成详情信息
export function getCommissionByEmployeeId(employeeId) {
  return request({
    url: `/api/employeeCommissionInfo/getCommissionByEmployeeId?employeeId=${employeeId}`,
    method: 'post'
  });
}